package com.dykj.fireFighting.api.base.maintenanceplan.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * @Description
 * @Author zly
 * @Date  2021-07-27 09:29:23
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "")
@TableName("maintenance_plan")
public class MaintenancePlan extends Model<MaintenancePlan> {
	private static final long serialVersionUID = 1L;

	@TableId
	private String id;
	@TableField("maintenance_name")
	private String maintenanceName;
	/**
	 * 开始日期
	 */
    @ApiModelProperty(value = "开始日期")
	@TableField("begin_time")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
	private Date beginTime;
	/**
	 * 结束日期
	 */
    @ApiModelProperty(value = "结束日期")
	@TableField("end_time")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date endTime;
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
	@TableField("maintenance_content")
	private String maintenanceContent;
	/**
	 * 单位
	 */
    @ApiModelProperty(value = "社会单位")
	@TableField("unit_id")
	private String unitId;
	@TableField("unit_name")
	private String unitName;

	@ApiModelProperty(value = "维保单位")
	@TableField("maintenance_unit_id")
	private String maintenanceUnitId;
	@TableField(exist = false)
	private String maintenanceUnitName;
	/**
	 * 合同id
	 */
    @ApiModelProperty(value = "合同id")
	@TableField("contract_id")
	private String contractId;
	/**
	 * 合同编号
	 */
    @ApiModelProperty(value = "合同编号")
	@TableField("contract_num")
	private String contractNum;
	@TableField("create_by")
	private String createBy;
	@TableField("create_time")
	private Date createTime;
	/**
	 * 0未删除 1已删除
	 */
    @ApiModelProperty(value = "0未删除 1已删除")
	@TableField("is_del")
	private Integer isDel;
	@TableField("update_by")
	private String updateBy;
	@TableField("update_time")
	private Date updateTime;

}
